
import 'package:json_annotation/json_annotation.dart';

//定义生成的文件 flutter pub run build_runner build --delete-conflicting-outputs
part 'h5_bean_offline_order.g.dart';

@JsonSerializable(explicitToJson: true)
class H5BeanOfflineOrder {

  String? orderId;//订单编号ID
  String? orderNo;  //订单号
  String? orderDate;
  dynamic json;


  H5BeanOfflineOrder(
      {this.orderId, this.orderNo, this.orderDate, this.json});
  //添加固定格式
  factory H5BeanOfflineOrder.fromJson(Map<String, dynamic> json) => _$H5BeanOfflineOrderFromJson(json);
  Map<String, dynamic> toJson() => _$H5BeanOfflineOrderToJson(this);

}

@JsonSerializable(explicitToJson: true)
class H5BeanOfflinePendingOrder {

  dynamic totalMoney;
  dynamic json;


  H5BeanOfflinePendingOrder(
      {this.totalMoney, this.json});
  //添加固定格式
  factory H5BeanOfflinePendingOrder.fromJson(Map<String, dynamic> json) => _$H5BeanOfflinePendingOrderFromJson(json);
  Map<String, dynamic> toJson() => _$H5BeanOfflinePendingOrderToJson(this);

}